Ext.define('AmpleHarvest.objects.topicmodel.cChartGauge',
{
	extend		: 'Ext.chart.Chart',
	alias		: 'widget.ampleharvest-objects-topicmodel-cchartgauge',
	animate		: true,
	flex		: 1,
	axesMax		: 10,
	store		: Ext.create('Ext.data.JsonStore', {
	    fields: ['value'],
	    data: [
	        { 'value'	: 0 }
	    ]
	}),
	insetPadding: 100,
	axes: [{
        type: 'gauge',
        position: 'gauge',
        minimum: 0,
        maximum: 100,
        steps: 10,
        margin: 10
    }],
    series: [{
        type: 'gauge',
        field: 'value',
        donut: 30,
        colorSet: ['#F49D10', '#ddd']
    }],
    
    initComponent	: function()
    {
    	this.callParent();
    },
    
    set_steps		: function(int_value)
    {
    	this.axes.maximum = int_value;
    	this.axes.steps = int_value;
    	console.log('set_steps');
    }
});